package ua.kiev.tosik.price.modules.clients.models;

import ua.kiev.tosik.price.modules.clients.tools.IPriceValidator;

import javax.swing.*;

public class FilterAction {

	private String id;
	private String name;
	private ImageIcon icon;
	private IPriceValidator validator;
	private boolean required = false;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ImageIcon getIcon() {
		return icon;
	}

	public void setIcon(ImageIcon icon) {
		this.icon = icon;
	}

	public IPriceValidator getValidator() {
		return validator;
	}

	public void setValidator(IPriceValidator validator) {
		this.validator = validator;
	}

	public boolean isRequired() {
		return required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	@Override
	public String toString() {
		return name;
	}

}
